package karileet.meeting.profile;

import karileet.meeting.profile.fragment.MainListFragment;
import karileet.meeting.profile.R;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.Menu;

public class MainActivity extends FragmentActivity {
	private static String LISTID = "main_list";
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main_list);
		MainListFragment mainList = new MainListFragment();
		if (savedInstanceState != null) {
			getSupportFragmentManager().findFragmentByTag(LISTID);
		} else {
			getSupportFragmentManager().beginTransaction()
					.add(android.R.id.content, mainList, LISTID).commit();
		}
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		// getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}

	@Override
	public void onResume() {
		super.onResume();
	}

}
